Skip to content

[doc] Update stages doc with top-level stages#597

Open
martin-velay wants to merge 1 commit into
lowRISC:mainfrom
martin-velay:top_level_stages
Open

[doc] Update stages doc with top-level stages#597
martin-velay wants to merge 1 commit into
lowRISC:mainfrom
martin-velay:top_level_stages

Conversation

@martin-velay

Copy link
Copy Markdown
Contributor

No description provided.

@martin-velay

Copy link
Copy Markdown
Contributor Author

@marnovandermaas, WDYT?

@marnovandermaas marnovandermaas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for this PR. I really enjoyed the motivation sections you added. I put some of my thoughts in here, which I hope are useful.

Comment thread doc/proj/stages.md Outdated
Comment thread doc/proj/stages.md Outdated
Comment thread doc/proj/stages.md Outdated
Comment thread doc/proj/stages.md
Comment thread doc/proj/stages.md Outdated
Comment thread doc/proj/stages.md Outdated
Comment thread doc/proj/stages.md Outdated
|---------------|-----------------|
| TOP_DV_DOC_DRAFTED | DV document drafted covering testbench architecture, agent topology, firmware-driven stimulus model, and chip-level coverage intent. |
| TOP_VPLAN_COMPLETED | Verification plan (`top_mocha_vplan.hjson`) complete with the metric-to-test mapping for each coverage item and milestone specified. Reviewed by designers, a peer DV engineer, firmware author, and chip architect. |
| TOP_TESTPLAN_COMPLETED | Chip-level testplan (`chip_testplan.hjson`) complete with at least one testpoint per integrated IP. Reviewed by designers, a peer DV engineer, firmware author, and chip architect. |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as for vplan.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have edited the text in my last push into:

Chip-level testplan (chip_testplan.hjson) substantively complete (>90% of intended scope) with at least one testpoint per integrated IP. Reviewed and approved by designers, a peer DV engineer, firmware author, and chip architect. Further evolution is expected as the design matures; the review ensures no major testpoint gaps remain before DV execution begins.

Is it OK for you?

Comment thread doc/proj/stages.md Outdated
Comment thread doc/proj/stages.md
Comment thread doc/proj/stages.md Outdated
@martin-velay
martin-velay marked this pull request as ready for review June 12, 2026 15:42
@martin-velay
martin-velay force-pushed the top_level_stages branch 3 times, most recently from 3a5f103 to 274ac44 Compare June 15, 2026 11:46
@martin-velay

Copy link
Copy Markdown
Contributor Author

@marnovandermaas,

  • I have rebased on the main in the 1st push.
  • The 2nd and 3rd push address some comments. Let me know if you are happy with it? In that case could you mark the related comments as resolved?

@martin-velay
martin-velay force-pushed the top_level_stages branch 3 times, most recently from 548a6df to 81cf5ee Compare July 15, 2026 06:53

@marnovandermaas marnovandermaas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another few comments from my end. The main issue I still have is the VPLAN and TESTPLAN completed statements for V1 and that these are not revisited in V2 and V3.

Comment thread doc/proj/stages.md Outdated
Comment thread doc/proj/stages.md Outdated
Comment thread doc/proj/stages.md Outdated
Comment thread doc/proj/stages.md Outdated

1. **Register reachability:** SW writes and reads at least one CSR, confirming correct address-map wiring through the crossbar.
2. **One integration-unique functional path:** one transaction that exercises a path only present at the chip level. The chip's external ports relevant to the IP under test must be connected to a UVM agent or a component that actively drives or passively observes them; a port left undriven or tied off does not count as exercised. This distinguishes a chip-level smoke from an IP-level smoke.
3. **At least one interrupt delivery** (where the IP can generate an interrupt): one full machine-mode claim/complete cycle through the PLIC, confirming IP to PLIC to CPU wiring.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is split into separate tests usually right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think my last push already addressed this. WDYT?

Comment thread doc/proj/stages.md Outdated
| **Item name** | **Description** |
|---------------|-----------------|
| TOP_DV_DOC_DRAFTED | DV document drafted covering testbench architecture, agent topology, firmware-driven stimulus model, and chip-level coverage intent. |
| TOP_VPLAN_COMPLETED | Verification plan (`top_mocha_vplan.hjson`) substantively complete (>90% of intended scope) with the metric-to-test mapping for each coverage item and milestone specified. Reviewed and approved by designers, a peer DV engineer, firmware author, and chip architect. Further evolution is expected as the design matures; the review ensures no major coverage gaps or methodological misalignments remain before DV execution begins. |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove the multiple approvals here, since we already have that step from the overall V1 approval

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have done a re-wording of this part, I hope it's better now.

Comment thread doc/proj/stages.md Outdated
Comment on lines +178 to +179
| TOP_VPLAN_COMPLETED | Verification plan (`top_mocha_vplan.hjson`) substantively complete (>90% of intended scope) with the metric-to-test mapping for each coverage item and milestone specified. Reviewed and approved by designers, a peer DV engineer, firmware author, and chip architect. Further evolution is expected as the design matures; the review ensures no major coverage gaps or methodological misalignments remain before DV execution begins. |
| TOP_TESTPLAN_COMPLETED | Chip-level testplan (`chip_testplan.hjson`) substantively complete (>90% of intended scope) with at least one testpoint per integrated IP. Reviewed and approved by designers, a peer DV engineer, firmware author, and chip architect. Further evolution is expected as the design matures; the review ensures no major testpoint gaps remain before DV execution begins. |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know we already discussed this but I still think these are very ambitious and not sure if we can do it in our time frame. If I were to write these I would change "_COMPLETED" to "_DRAFTED". I would also remove the ">90% of intended scope". And instead of "substantively complete" make it "substantively drafted".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have done a re-wording of this part. Although, I don't want the "DRAFTED" word, I feel it's too weak. What do you think of:

| TOP_VPLAN_REVIEWED | Verification plan (`top_mocha_vplan.hjson`) substantively complete: every planned coverage item has a metric-to-test mapping and its milestone specified, with no known major coverage gaps. Reviewed with stakeholders across DV, design and software/firmware so no perspective's coverage gaps or methodological misalignments remain before DV execution begins. The plan is expected to evolve as the design matures. |
| TOP_TESTPLAN_REVIEWED | Chip-level testplan (`chip_testplan.hjson`) substantively complete: at least one testpoint per integrated IP and no known major testpoint gaps. Reviewed with stakeholders across DV, design and software/firmware so no perspective's testpoint gaps remain before DV execution begins. The plan is expected to evolve as the design matures. |

Comment thread doc/proj/stages.md
Comment thread doc/proj/stages.md
Comment thread doc/proj/stages.md Outdated
Signed-off-by: martin-velay <mvelay@lowrisc.org>
@martin-velay

Copy link
Copy Markdown
Contributor Author

@marnovandermaas, I think I have addressed most of your comments. I hope you'll be satisfied. At least you've raised valid points again. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants